package com.baitengsoft.patentapimonitor.api.dao;

import com.baitengsoft.patentapimonitor.api.entity.ScheduleJobEntity;
import com.baitengsoft.patentapimonitor.api.model.ScheduleJobViewModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Admin on 2018/1/8.
 */
@Mapper
public interface ScheduleJobDao extends BasetkRepository<ScheduleJobEntity> {

    List<ScheduleJobViewModel> searchSchedule(@Param("sqlStr") String sqlStr);

    Integer scheduleCounts(String sql);

    int delScheduleJobByPlatformId(int platformId);

    int deleteById(int scheduleId);

    int delScheduleJobByDataId(int dataId);

    ScheduleJobViewModel searchSingleSchedule(int jobId);

    int selectByPlatFormId(int selectByPlatFormId);

    ScheduleJobEntity selectByDataId(int dataId);

    int updateParamsById(Map<String, Object> map);


}
